<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>V-IF/V-SHOW区别</title>
    <script src="js/vue.js"></script>
</head>
<body>

<div id="app">

    <p v-if="rich">有钱花</p>
    <p v-show="rich">有钱花</p>
</div>

<script>
    new Vue({
        el:"#app",
        data:{
            rich:true //是否有钱
        }
    });
</script>
</body>
</html>